-- GENERATED SPELL FOR [Coosh'coosh] --


function spell0_18586(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18586', 3000, 1)
end

function spell1_18586(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18586', 0, 1)
end

function Sorts_18586(pUnit, Event)
local choix_sorts_18586 = math.random(0, 1)
if choix_sorts_18586 == 0 then
pUnit:RegisterEvent('spell0_18586', 1, 1)
end
if choix_sorts_18586 == 1 then
pUnit:RegisterEvent('spell1_18586', 1, 1)
end
end

function mob18586_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18586', math.random(1500, 3000), 1)
end

function mob18586_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18586_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18586_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18586, 1, 'mob18586_Action')
RegisterUnitEvent(18586, 2, 'mob18586_Leave')
RegisterUnitEvent(18586, 3, 'mob18586_Kill')
RegisterUnitEvent(18586, 4, 'mob18586_Die')
